package com.zzptc.zzsgz.bdsjws.fragments.base;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by Administrator on 2017/5/26.
 */

public abstract class BaseFragment extends Fragment {
    private View view;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        view=inflater.inflate(getXML(),container,false);
        initView();
        initDate();
        return view;
    }

    public abstract int getXML();

    public abstract void initView();

    public abstract void initDate();

    public View getThisView(){
        return view;
    }
}
